package com.bridgeModel;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.math.BigDecimal;
public class AliPayWay extends Pay{

    public AliPayWay(IPayMode iPayMode) {
        super(iPayMode);
    }

    @Override
    public String tanferPay(String Uid, BigDecimal amount) {
        return "阿里支付"+"金额:" + amount.toString() + "唯一ID:" + Uid + iPayMode.IPayModeWay();
    }
}
